home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 3 / MacMania 3.toast / Demo's / KarmaMacDemo / GAME_G1.DXR / 00235.ls < prev    next >
Encoding:
Text File  |  1995-10-24  |  428 b   |  20 lines

  1. on moveLeftMiddle
  2.   global SpinCount, MoveDirection, UP, myState, BallinSprite
  3.   if SpinCount < 10 then
  4.     set the locH of sprite 28 to the locH of sprite 28 - 3
  5.   else
  6.     set myState to 0
  7.   end if
  8.   if SpinCount = 10 then
  9.     set SpinCount to 0
  10.     if BallinSprite = 26 then
  11.       set MoveDirection to 5
  12.     else
  13.       set MoveDirection to UP
  14.     end if
  15.   else
  16.     set SpinCount to SpinCount + 1
  17.   end if
  18.   updateStage()
  19. end
  20.